body {
  margin: 0;
  height: 100vh;
}
.container {
  height: 100%;
  display: flex;
}
.container > .nav {
  flex: 0 0 260px;
  overflow: hidden auto ;
}
.container > .nav > ul > li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}
.container > .nav > ul > li > h2 {
  padding: 0 10px;
  line-height: 36px;
  font-weight: 700;
  background-color: #f2f2f2;
}
.container > .nav > ul > li > span {
  display: block;
  padding: 0 10px;
  line-height: 33px;
  cursor: pointer;
}
.container > .nav > ul > li.active > span {
  color: #01AAED;
}
.container > .main {
  flex: 1;
  display: flex;
}
.container > .main > .map {
  height: 100%;
  flex: 1;
}
#map {
  width: 100%;
  height: 100%;
}
.container > .main > .code {
  width: 700px;
  height: 100%;
  overflow-y: auto;
  background-color: #fff;
}
.container > .main > .show {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 10px;
  line-height: 20px;
  font-size: 16px;
  background-color: skyblue;
  cursor: pointer;
}

@media (max-width: 1440px) {
  .container > .main > .code {
    width: 500px;
  }
}
